﻿namespace Calculator.Expression.Atom
{
    using System;
    using ExpressionEvaluator;
    using ExpressionEvaluator.Expression;
    public class Constant : Expr
    {
        public bool isConstant;

        public string ToString()
        {
            return Value.ToString();
        }

        public Constant(double value)
        {
            this.Value = value;
        }

        public override string Name
        {
            get { return "Constant"; }
        }

        public override Expr diff(Expr expr)
        {
            throw new NotImplementedException();
        }
    }
}
